<?php defined('SYSPATH') OR die('No direct access allowed.');?>
<!-- BEGIN PROFILE FORM -->
<form action="<?=url::base().Router::uri('auth', array('method'=>'change_profile'))?>" class="regform" method="post">
<h3><?=Kohana::lang('auth.profile_title')?> <?=message::custom('username')?></h3>
<?message::render(NULL, 'result')?>
<fieldset>
  <legend><?=Kohana::lang('auth.profile_userdata')?></legend>
	<p class="rule"><?=Kohana::lang('auth.profile_rule')?></p>
  <ol>
    <li>
			<?message::render('error', 'first_name')?>
			<dl>
				<dt>
					<label for="first_name"><?=Kohana::lang('auth.fname')?>
					</label>
				</dt>
				<dd>
					<input type="text" name="first_name" id="first_name" size="50" maxlength="127" value="<?=message::custom('first_name')?>" />
				</dd>
			</dl>
    </li>
    <li>
			<?message::render('error', 'last_name')?>
      <dl>
				<dt>
					<label for="last_name" class="title"><?=Kohana::lang('auth.lname')?> </label>
				</dt>
				<dd>
					<input type="text" name="last_name" id="last_name" size="50" maxlength="127" value="<?=message::custom('last_name')?>" />
				</dd>
			</dl>
		</li>
    <li>
			<?message::render('error', 'middle_name')?>
      <dl>
				<dt>
					<label for="middle_name" class="title"><?=Kohana::lang('auth.mname')?> </label>
				</dt>
				<dd>
					<input type="text" name="middle_name" id="middle_name" size="50" maxlength="127" value="<?=message::custom('middle_name')?>" />
				</dd>
			</dl>
		</li>
    <li>
			<?message::render('error', 'city')?>
      <dl>
				<dt>
					<label for="city" class="title"><?=Kohana::lang('auth.city')?> </label>
				</dt>
				<dd>
					<input type="text" name="city" id="city" size="50" maxlength="127" value="<?=message::custom('city')?>" />
				</dd>
			</dl>
    </li>
  </ol>
</fieldset>
<fieldset>
  <legend><?=Kohana::lang('auth.contacts')?></legend>
	<p class="rule"><?=Kohana::lang('auth.contacts_rule')?></p>
  <ol>
    <li>
			<?message::render('error', 'website')?>
      <dl>
				<dt>
					<label for="website" class="title"><?=Kohana::lang('auth.website')?></label>
				</dt>
				<dd>
					<input type="text" name="website" id="website" value="<?=message::custom('website')?>" size="50" maxlength="127" />
				</dd>
			</dl>
    </li>
    <li>
			<?message::render('error', 'icq')?>
      <dl>
				<dt>
					<label for="icq" class="title"><?=Kohana::lang('auth.icq')?></label>
				</dt>
				<dd>
					<input type="text" name="icq" id="icq" value="<?=message::custom('icq')?>" size="50" maxlength="10" />
				</dd>
			</dl>
    </li>
    <li>
			<?message::render('error', 'jabber')?>
      <dl>
				<dt>
					<label for="jabber" class="title"><?=Kohana::lang('auth.jabber')?></label>
				</dt>
				<dd>
					<input type="text" name="jabber" id="jabber" value="<?=message::custom('jabber')?>" size="50" maxlength="127" />
				</dd>
			</dl>
		</li>
  </ol>
</fieldset>
<fieldset>
  <legend><?=Kohana::lang('auth.moreinfo')?></legend>
	<p class="rule"><?=Kohana::lang('auth.moreinfo_rule')?></p>
  <ol>
    <li>
			<?message::render('error', 'interests')?>
      <dl>
				<dt>
					<label for="interests" class="title"><?=Kohana::lang('auth.interests')?>
						<p class="rule"><?=Kohana::lang('auth.interests_rule')?></p>
					</label>
				</dt>
				<dd>
					<input type="text" name="interests" id="interests" value="<?=message::custom('interests')?>" size="50" maxlength="127" />
				</dd>
			</dl>
    </li>
    <li>
			<?message::render('error', 'about')?>
      <dl>
				<dt>
					<label for="about" class="title"><?=Kohana::lang('auth.about')?>
						<p class="rule"><?=Kohana::lang('auth.about_rule')?></p>
					</label>
				</dt>
				<dd>
					<textarea name="about" id="about" rows="3" ><?=message::custom('about')?></textarea>
				</dd>
			</dl>
    </li>
    <li><input type="submit" value="Сохранить" /></li>
  </ol>
</fieldset>
</form>
<!-- END PROFILE FORM -->